<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'adminMenu.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style>
		body{
			width:900px;
			background-image: url('/Test/bg.gif');
		}
	</style>
  </head>
  
  <body >
  	<center>
			<ul style="width: 900px; height: 68px;">
				<li style="width: 200px; height: 79px; float: left;">
					<a>欢迎</a><s:property value="user.userName"/>
				</li>
					
				
				<li	style="width: 700px; margin-top: 30px; float: left; text-align: right;">
	<script language="JavaScript">
		//制作年月日的JavaScript代码
		var today = new Date();
		var month = today.getMonth() + 1
		if (today.getDay() == 1) {
			document.write("&nbsp;" + today.getYear() + "年" + month + "月"
					+ today.getDate() + "日 星期一");
		}
		if (today.getDay() == 2) {
			document.write("&nbsp;" + today.getYear() + "年" + month + "月"
					+ today.getDate() + "日 星期二");
		}
		if (today.getDay() == 3) {
			document.write("&nbsp;" + today.getYear() + "年" + month + "月"
					+ today.getDate() + "日 星期三");
		}
		if (today.getDay() == 4) {
			document.write("&nbsp;" + today.getYear() + "年" + month + "月"
					+ today.getDate() + "日 星期四");
		}
		if (today.getDay() == 5) {
			document.write("&nbsp;" + today.getYear() + "年" + month + "月"
					+ today.getDate() + "日 星期五");
		}
		if (today.getDay() == 6) {
			document.write("&nbsp;" + today.getYear() + "年" + month + "月"
					+ today.getDate() + "日 星期六");
		}
		if (today.getDay() == 0) {
			document.write("&nbsp;" + today.getYear() + "年" + month + "月"
					+ today.getDate() + "日 星期日");
		}
	</script>
	</li>
	</ul>
    <a href="main/admin/adminMenu.jsp">首页</a>|
    <a href="finuser.action?type=1">查看学生用户</a>|
    <a href="finuser.action?type=2">查看教师用户</a>|
    <a href="/Test/main/admin/password.jsp">修改密码</a>
    <a href="/Test/exit.action">退出</a>
  </center>
  </body>
</html>
